package com.alibaba.sdk.model.assembler;

import com.alibaba.sdk.model.assembler.mapper.UserMapper;
import com.alibaba.sdk.model.entity.User;
import com.alibaba.sdk.model.output.OneUserResponse;
import org.springframework.stereotype.Component;

/**
 * user对象转化器
 *
 * @ author  Shawn(Shawn_0217@163.com)
 * @ date    2021/4/27 11:01
 * @ company Alibaba
 */
@Component
public class UserAssembler implements UserMapper {

    @Override
    public OneUserResponse fromEntity(User user) {
        return UserMapper.INSTANCE.fromEntity(user);
    }
}
